#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //创建QCursor对象-->和QIcon对象一样,不支持对象树机制,直接在栈上创建
    QCursor cursor(Qt::WaitCursor);
    //对按钮的cursor属性进行设置
    ui->pushButton->setCursor(cursor);
}

Widget::~Widget()
{
    delete ui;
}

